home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / xpcom / nsIComponentManagerObsolete.h < prev    next >
Encoding:
C/C++ Source or Header  |  2006-05-08  |  31.4 KB  |  606 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIComponentManagerObsolete.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIComponentManagerObsolete_h__
  6. #define __gen_nsIComponentManagerObsolete_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. #ifndef __gen_nsIFactory_h__
  14. #include "nsIFactory.h"
  15. #endif
  16.  
  17. /* For IDL files that don't want to include root IDL files. */
  18. #ifndef NS_NO_VTABLE
  19. #define NS_NO_VTABLE
  20. #endif
  21. class nsIFile; /* forward declaration */
  22.  
  23. class nsIEnumerator; /* forward declaration */
  24.  
  25.  
  26. /* starting interface:    nsIComponentManagerObsolete */
  27. #define NS_ICOMPONENTMANAGEROBSOLETE_IID_STR "8458a740-d5dc-11d2-92fb-00e09805570f"
  28.  
  29. #define NS_ICOMPONENTMANAGEROBSOLETE_IID \
  30.   {0x8458a740, 0xd5dc, 0x11d2, \
  31.     { 0x92, 0xfb, 0x00, 0xe0, 0x98, 0x05, 0x57, 0x0f }}
  32.  
  33. class NS_NO_VTABLE nsIComponentManagerObsolete : public nsISupports {
  34.  public: 
  35.  
  36.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_ICOMPONENTMANAGEROBSOLETE_IID)
  37.  
  38.   /**
  39.      * findFactory
  40.      *
  41.      * Returns the factory object that can be used to create instances of
  42.      * CID aClass
  43.      *
  44.      * @param aClass The classid of the factory that is being requested
  45.      */
  46.   /* nsIFactory findFactory (in nsCIDRef aClass); */
  47.   NS_IMETHOD FindFactory(const nsCID & aClass, nsIFactory **_retval) = 0;
  48.  
  49.   /**
  50.      * getClassObject
  51.      *
  52.      * @param aClass : CID of the class whose class object is requested
  53.      * @param aIID : IID of an interface that the class object is known to
  54.      *               to implement. nsISupports and nsIFactory are known to
  55.      *               be implemented by the class object.
  56.      */
  57.   /* [noscript] voidPtr getClassObject (in nsCIDRef aClass, in nsIIDRef aIID); */
  58.   NS_IMETHOD GetClassObject(const nsCID & aClass, const nsIID & aIID, void * *_retval) = 0;
  59.  
  60.   /**
  61.      * contractIDToClassID
  62.      *
  63.      * Get the ClassID for a given ContractID. Many ClassIDs may implement a
  64.      * ContractID. In such a situation, this returns the preferred ClassID, which
  65.      * happens to be the last registered ClassID.
  66.      * 
  67.      * @param aContractID : Contractid for which ClassID is requested
  68.      * @return aClass : ClassID return
  69.      */
  70.   /* [notxpcom] nsresult contractIDToClassID (in string aContractID, out nsCID aClass); */
  71.   NS_IMETHOD_(nsresult) ContractIDToClassID(const char *aContractID, nsCID *aClass) = 0;
  72.  
  73.   /**
  74.      * classIDToContractid
  75.      *
  76.      * Get the ContractID for a given ClassID. A ClassIDs may implement multiple
  77.      * ContractIDs. This function return the last registered ContractID.
  78.      *
  79.      * @param aClass : ClassID for which ContractID is requested.
  80.      * @return aClassName : returns class name asssociated with aClass
  81.      * @return : ContractID last registered for aClass
  82.      */
  83.   /* string CLSIDToContractID (in nsCIDRef aClass, out string aClassName); */
  84.   NS_IMETHOD CLSIDToContractID(const nsCID & aClass, char **aClassName, char **_retval) = 0;
  85.  
  86.   /**
  87.      * createInstance
  88.      *
  89.      * Create an instance of the CID aClass and return the interface aIID.
  90.      *
  91.      * @param aClass : ClassID of object instance requested
  92.      * @param aDelegate : Used for aggregation
  93.      * @param aIID : IID of interface requested
  94.      */
  95.   /* [noscript] voidPtr createInstance (in nsCIDRef aClass, in nsISupports aDelegate, in nsIIDRef aIID); */
  96.   NS_IMETHOD CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const nsIID & aIID, void * *_retval) = 0;
  97.  
  98.   /**
  99.      * createInstanceByContractID
  100.      *
  101.      * Create an instance of the CID that implements aContractID and return the
  102.      * interface aIID. This is a convenience function that effectively does
  103.      * ContractIDToClassID() followed by CreateInstance().
  104.      *
  105.      * @param aContractID : aContractID of object instance requested
  106.      * @param aDelegate : Used for aggregation
  107.      * @param aIID : IID of interface requested
  108.      */
  109.   /* [noscript] voidPtr createInstanceByContractID (in string aContractID, in nsISupports aDelegate, in nsIIDRef IID); */
  110.   NS_IMETHOD CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate, const nsIID & IID, void * *_retval) = 0;
  111.  
  112.   /**
  113.      * registryLocationForSpec
  114.      *
  115.      * Given a file specification, return the registry representation of
  116.      * the filename. Files that are found relative to the components
  117.      * directory will have a registry representation
  118.      * "rel:<relative-native-path>" while filenames that are not, will have
  119.      * "abs:<full-native-path>".
  120.      */
  121.   /* string registryLocationForSpec (in nsIFile aSpec); */
  122.   NS_IMETHOD RegistryLocationForSpec(nsIFile *aSpec, char **_retval) = 0;
  123.  
  124.   /**
  125.      * specForRegistyLocation
  126.      *
  127.      * Create a file specification for the registry representation (rel:/abs:)
  128.      * got via registryLocationForSpec.
  129.      */
  130.   /* nsIFile specForRegistryLocation (in string aLocation); */
  131.   NS_IMETHOD SpecForRegistryLocation(const char *aLocation, nsIFile **_retval) = 0;
  132.  
  133.   /**
  134.      * registerFactory
  135.      *
  136.      * Register a factory and ContractID associated with CID aClass
  137.      *
  138.      * @param aClass : CID of object
  139.      * @param aClassName : Class Name of CID
  140.      * @param aContractID : ContractID associated with CID aClass
  141.      * @param aFactory : Factory that will be registered for CID aClass
  142.      * @param aReplace : Boolean that indicates whether to replace a previous
  143.      *                   registration for the CID aClass.
  144.      */
  145.   /* void registerFactory (in nsCIDRef aClass, in string aClassName, in string aContractID, in nsIFactory aFactory, in boolean aReplace); */
  146.   NS_IMETHOD RegisterFactory(const nsCID & aClass, const char *aClassName, const char *aContractID, nsIFactory *aFactory, PRBool aReplace) = 0;
  147.  
  148.   /**
  149.      * registerComponent
  150.      *
  151.      * Register a native dll module via its registry representation as returned
  152.      * by registryLocationForSpec() as the container of CID implemenation
  153.      * aClass and associate aContractID and aClassName to the CID aClass. Native
  154.      * dll component type is assumed.
  155.      *
  156.      * @param aClass : CID implemenation contained in module
  157.      * @param aClassName : Class name associated with CID aClass
  158.      * @param aContractID : ContractID associated with CID aClass
  159.      * @param aLocation : Location of module (dll). Format of this is the
  160.      *                    registry representation as returned by
  161.      *                    registryLocationForSpec()
  162.      * @param aReplace : Boolean that indicates whether to replace a previous
  163.      *                   module registration for aClass.
  164.      * @param aPersist : Remember this registration across sessions.
  165.      */
  166.   /* void registerComponent (in nsCIDRef aClass, in string aClassName, in string aContractID, in string aLocation, in boolean aReplace, in boolean aPersist); */
  167.   NS_IMETHOD RegisterComponent(const nsCID & aClass, const char *aClassName, const char *aContractID, const char *aLocation, PRBool aReplace, PRBool aPersist) = 0;
  168.  
  169.   /**
  170.      * registerComponentWithType
  171.      *
  172.      * Register a module's location via its registry representation
  173.      * as returned by registryLocationForSpec() as the container of CID implemenation
  174.      * aClass of type aType and associate aContractID and aClassName to the CID aClass.
  175.      *
  176.      * @param aClass : CID implemenation contained in module
  177.      * @param aClassName : Class name associated with CID aClass
  178.      * @param aContractID : ContractID associated with CID aClass
  179.      * @param aSpec : Filename spec for module's location.
  180.      * @param aLocation : Location of module of type aType. Format of this string
  181.      *                    is the registry representation as returned by
  182.      *                    registryLocationForSpec()
  183.      * @param aReplace : Boolean that indicates whether to replace a previous
  184.      *                   loader registration for aClass.
  185.      * @param aPersist : Remember this registration across sessions.
  186.      * @param aType : Component Type of CID aClass.
  187.      */
  188.   /* void registerComponentWithType (in nsCIDRef aClass, in string aClassName, in string aContractID, in nsIFile aSpec, in string aLocation, in boolean aReplace, in boolean aPersist, in string aType); */
  189.   NS_IMETHOD RegisterComponentWithType(const nsCID & aClass, const char *aClassName, const char *aContractID, nsIFile *aSpec, const char *aLocation, PRBool aReplace, PRBool aPersist, const char *aType) = 0;
  190.  
  191.   /**
  192.      * registerComponentSpec
  193.      *
  194.      * Register a native dll module via its file specification as the container
  195.      * of CID implemenation aClass and associate aContractID and aClassName to the
  196.      * CID aClass. Native dll component type is assumed.
  197.      *
  198.      * @param aClass : CID implemenation contained in module
  199.      * @param aClassName : Class name associated with CID aClass
  200.      * @param aContractID : ContractID associated with CID aClass
  201.      * @param aLibrary : File specification Location of module (dll).
  202.      * @param aReplace : Boolean that indicates whether to replace a previous
  203.      *                   module registration for aClass.
  204.      * @param aPersist : Remember this registration across sessions.
  205.      */
  206.   /* void registerComponentSpec (in nsCIDRef aClass, in string aClassName, in string aContractID, in nsIFile aLibrary, in boolean aReplace, in boolean aPersist); */
  207.   NS_IMETHOD RegisterComponentSpec(const nsCID & aClass, const char *aClassName, const char *aContractID, nsIFile *aLibrary, PRBool aReplace, PRBool aPersist) = 0;
  208.  
  209.   /**
  210.      * registerComponentLib
  211.      *
  212.      * Register a native dll module via its dll name (not full path) as the
  213.      * container of CID implemenation aClass and associate aContractID and aClassName
  214.      * to the CID aClass. Native dll component type is assumed and the system
  215.      * services will be used to load this dll.
  216.      *
  217.      * @param aClass : CID implemenation contained in module
  218.      * @param aClassName : Class name associated with CID aClass
  219.      * @param aContractID : ContractID associated with CID aClass
  220.      * @param aDllNameLocation : Dll name of module.
  221.      * @param aReplace : Boolean that indicates whether to replace a previous
  222.      *                   module registration for aClass.
  223.      * @param aPersist : Remember this registration across sessions.
  224.      */
  225.   /* void registerComponentLib (in nsCIDRef aClass, in string aClassName, in string aContractID, in string aDllName, in boolean aReplace, in boolean aPersist); */
  226.   NS_IMETHOD RegisterComponentLib(const nsCID & aClass, const char *aClassName, const char *aContractID, const char *aDllName, PRBool aReplace, PRBool aPersist) = 0;
  227.  
  228.   /**
  229.      * unregisterFactory
  230.      *
  231.      * Unregister a factory associated with CID aClass.
  232.      *
  233.      * @param aClass : ClassID being unregistered
  234.      * @param aFactory : Factory previously registered to create instances of
  235.      *                   ClassID aClass.
  236.      */
  237.   /* void unregisterFactory (in nsCIDRef aClass, in nsIFactory aFactory); */
  238.   NS_IMETHOD UnregisterFactory(const nsCID & aClass, nsIFactory *aFactory) = 0;
  239.  
  240.   /**
  241.      * unregisterComponent
  242.      *
  243.      * Disassociate module aLocation represented as registry location as returned
  244.      * by registryLocationForSpec() as containing ClassID aClass.
  245.      *
  246.      * @param aClass : ClassID being unregistered
  247.      * @param aLocation : Location of module. Format of this is the registry
  248.      *                    representation as returned by registryLocationForSpec().
  249.      *                    Components of any type will be unregistered.
  250.      */
  251.   /* void unregisterComponent (in nsCIDRef aClass, in string aLocation); */
  252.   NS_IMETHOD UnregisterComponent(const nsCID & aClass, const char *aLocation) = 0;
  253.  
  254.   /**
  255.      * unregisterComponentSpec
  256.      *
  257.      * Disassociate module references by file specification aLibrarySpec as
  258.      * containing ClassID aClass.
  259.      */
  260.   /* void unregisterComponentSpec (in nsCIDRef aClass, in nsIFile aLibrarySpec); */
  261.   NS_IMETHOD UnregisterComponentSpec(const nsCID & aClass, nsIFile *aLibrarySpec) = 0;
  262.  
  263.   /**
  264.      * freeLibraries
  265.      *
  266.      * Enumerates all loaded modules and unloads unused modules.
  267.      */
  268.   /* void freeLibraries (); */
  269.   NS_IMETHOD FreeLibraries(void) = 0;
  270.  
  271.   /**
  272.      * ID values for 'when'
  273.      */
  274.   enum { NS_Startup = 0 };
  275.  
  276.   enum { NS_Script = 1 };
  277.  
  278.   enum { NS_Timer = 2 };
  279.  
  280.   enum { NS_Shutdown = 3 };
  281.  
  282.   /**
  283.      * autoRegister
  284.      *
  285.      * Enumerates directory looking for modules of all types and registers
  286.      * modules who have changed (modtime or size) since the last time
  287.      * autoRegister() was invoked.
  288.      *
  289.      * @param when : ID values of when the call is being made.
  290.      * @param directory : Directory the will be enumerated.
  291.      */
  292.   /* void autoRegister (in long when, in nsIFile directory); */
  293.   NS_IMETHOD AutoRegister(PRInt32 when, nsIFile *directory) = 0;
  294.  
  295.   /**
  296.      * autoRegisterComponent
  297.      *
  298.      * Loads module using appropriate loader and gives it an opportunity to
  299.      * register its CIDs if module's modtime or size changed since the last
  300.      * time this was called.
  301.      *
  302.      * @param when : ID values of when the call is being made.
  303.      * @param aFileLocation : File specification of module.
  304.      */
  305.   /* void autoRegisterComponent (in long when, in nsIFile aFileLocation); */
  306.   NS_IMETHOD AutoRegisterComponent(PRInt32 when, nsIFile *aFileLocation) = 0;
  307.  
  308.   /**
  309.      * autoUnregisterComponent
  310.      *
  311.      * Loads module using approriate loader and gives it an opportunity to
  312.      * unregister its CIDs
  313.      */
  314.   /* void autoUnregisterComponent (in long when, in nsIFile aFileLocation); */
  315.   NS_IMETHOD AutoUnregisterComponent(PRInt32 when, nsIFile *aFileLocation) = 0;
  316.  
  317.   /**
  318.      * isRegistered
  319.      *
  320.      * Returns true if a factory or module is registered for CID aClass.
  321.      *
  322.      * @param aClass : ClassID queried for registeration
  323.      * @return : true if a factory or module is registered for CID aClass.
  324.      *           false otherwise.
  325.      */
  326.   /* boolean isRegistered (in nsCIDRef aClass); */
  327.   NS_IMETHOD IsRegistered(const nsCID & aClass, PRBool *_retval) = 0;
  328.  
  329.   /**
  330.      * enumerateCLSIDs
  331.      *
  332.      * Enumerate the list of all registered ClassIDs.
  333.      *
  334.      * @return : enumerator for ClassIDs.
  335.      */
  336.   /* nsIEnumerator enumerateCLSIDs (); */
  337.   NS_IMETHOD EnumerateCLSIDs(nsIEnumerator **_retval) = 0;
  338.  
  339.   /**
  340.      * enumerateContractIDs
  341.      *
  342.      * Enumerate the list of all registered ContractIDs.
  343.      *
  344.      * @return : enumerator for ContractIDs.
  345.      */
  346.   /* nsIEnumerator enumerateContractIDs (); */
  347.   NS_IMETHOD EnumerateContractIDs(nsIEnumerator **_retval) = 0;
  348.  
  349. };
  350.  
  351. /* Use this macro when declaring classes that implement this interface. */
  352. #define NS_DECL_NSICOMPONENTMANAGEROBSOLETE \
  353.   NS_IMETHOD FindFactory(const nsCID & aClass, nsIFactory **_retval); \
  354.   NS_IMETHOD GetClassObject(const nsCID & aClass, const nsIID & aIID, void * *_retval); \
  355.   NS_IMETHOD_(nsresult) ContractIDToClassID(const char *aContractID, nsCID *aClass); \
  356.   NS_IMETHOD CLSIDToContractID(const nsCID & aClass, char **aClassName, char **_retval); \
  357.   NS_IMETHOD CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const nsIID & aIID, void * *_retval); \
  358.   NS_IMETHOD CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate, const nsIID & IID, void * *_retval); \
  359.   NS_IMETHOD RegistryLocationForSpec(nsIFile *aSpec, char **_retval); \
  360.   NS_IMETHOD SpecForRegistryLocation(const char *aLocation, nsIFile **_retval); \
  361.   NS_IMETHOD RegisterFactory(const nsCID & aClass, const char *aClassName, const char *aContractID, nsIFactory *aFactory, PRBool aReplace); \
  362.   NS_IMETHOD RegisterComponent(const nsCID & aClass, const char *aClassName, const char *aContractID, const char *aLocation, PRBool aReplace, PRBool aPersist); \
  363.   NS_IMETHOD RegisterComponentWithType(const nsCID & aClass, const char *aClassName, const char *aContractID, nsIFile *aSpec, const char *aLocation, PRBool aReplace, PRBool aPersist, const char *aType); \
  364.   NS_IMETHOD RegisterComponentSpec(const nsCID & aClass, const char *aClassName, const char *aContractID, nsIFile *aLibrary, PRBool aReplace, PRBool aPersist); \
  365.   NS_IMETHOD RegisterComponentLib(const nsCID & aClass, const char *aClassName, const char *aContractID, const char *aDllName, PRBool aReplace, PRBool aPersist); \
  366.   NS_IMETHOD UnregisterFactory(const nsCID & aClass, nsIFactory *aFactory); \
  367.   NS_IMETHOD UnregisterComponent(const nsCID & aClass, const char *aLocation); \
  368.   NS_IMETHOD UnregisterComponentSpec(const nsCID & aClass, nsIFile *aLibrarySpec); \
  369.   NS_IMETHOD FreeLibraries(void); \
  370.   NS_IMETHOD AutoRegister(PRInt32 when, nsIFile *directory); \
  371.   NS_IMETHOD AutoRegisterComponent(PRInt32 when, nsIFile *aFileLocation); \
  372.   NS_IMETHOD AutoUnregisterComponent(PRInt32 when, nsIFile *aFileLocation); \
  373.   NS_IMETHOD IsRegistered(const nsCID & aClass, PRBool *_retval); \
  374.   NS_IMETHOD EnumerateCLSIDs(nsIEnumerator **_retval); \
  375.   NS_IMETHOD EnumerateContractIDs(nsIEnumerator **_retval); 
  376.  
  377. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  378. #define NS_FORWARD_NSICOMPONENTMANAGEROBSOLETE(_to) \
  379.   NS_IMETHOD FindFactory(const nsCID & aClass, nsIFactory **_retval) { return _to FindFactory(aClass, _retval); } \
  380.   NS_IMETHOD GetClassObject(const nsCID & aClass, const nsIID & aIID, void * *_retval) { return _to GetClassObject(aClass, aIID, _retval); } \
  381.   NS_IMETHOD_(nsresult) ContractIDToClassID(const char *aContractID, nsCID *aClass) { return _to ContractIDToClassID(aContractID, aClass); } \
  382.   NS_IMETHOD CLSIDToContractID(const nsCID & aClass, char **aClassName, char **_retval) { return _to CLSIDToContractID(aClass, aClassName, _retval); } \
  383.   NS_IMETHOD CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const nsIID & aIID, void * *_retval) { return _to CreateInstance(aClass, aDelegate, aIID, _retval); } \
  384.   NS_IMETHOD CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate, const nsIID & IID, void * *_retval) { return _to CreateInstanceByContractID(aContractID, aDelegate, IID, _retval); } \
  385.   NS_IMETHOD RegistryLocationForSpec(nsIFile *aSpec, char **_retval) { return _to RegistryLocationForSpec(aSpec, _retval); } \
  386.   NS_IMETHOD SpecForRegistryLocation(const char *aLocation, nsIFile **_retval) { return _to SpecForRegistryLocation(aLocation, _retval); } \
  387.   NS_IMETHOD RegisterFactory(const nsCID & aClass, const char *aClassName, const char *aContractID, nsIFactory *aFactory, PRBool aReplace) { return _to RegisterFactory(aClass, aClassName, aContractID, aFactory, aReplace); } \
  388.   NS_IMETHOD RegisterComponent(const nsCID & aClass, const char *aClassName, const char *aContractID, const char *aLocation, PRBool aReplace, PRBool aPersist) { return _to RegisterComponent(aClass, aClassName, aContractID, aLocation, aReplace, aPersist); } \
  389.   NS_IMETHOD RegisterComponentWithType(const nsCID & aClass, const char *aClassName, const char *aContractID, nsIFile *aSpec, const char *aLocation, PRBool aReplace, PRBool aPersist, const char *aType) { return _to RegisterComponentWithType(aClass, aClassName, aContractID, aSpec, aLocation, aReplace, aPersist, aType); } \
  390.   NS_IMETHOD RegisterComponentSpec(const nsCID & aClass, const char *aClassName, const char *aContractID, nsIFile *aLibrary, PRBool aReplace, PRBool aPersist) { return _to RegisterComponentSpec(aClass, aClassName, aContractID, aLibrary, aReplace, aPersist); } \
  391.   NS_IMETHOD RegisterComponentLib(const nsCID & aClass, const char *aClassName, const char *aContractID, const char *aDllName, PRBool aReplace, PRBool aPersist) { return _to RegisterComponentLib(aClass, aClassName, aContractID, aDllName, aReplace, aPersist); } \
  392.   NS_IMETHOD UnregisterFactory(const nsCID & aClass, nsIFactory *aFactory) { return _to UnregisterFactory(aClass, aFactory); } \
  393.   NS_IMETHOD UnregisterComponent(const nsCID & aClass, const char *aLocation) { return _to UnregisterComponent(aClass, aLocation); } \
  394.   NS_IMETHOD UnregisterComponentSpec(const nsCID & aClass, nsIFile *aLibrarySpec) { return _to UnregisterComponentSpec(aClass, aLibrarySpec); } \
  395.   NS_IMETHOD FreeLibraries(void) { return _to FreeLibraries(); } \
  396.   NS_IMETHOD AutoRegister(PRInt32 when, nsIFile *directory) { return _to AutoRegister(when, directory); } \
  397.   NS_IMETHOD AutoRegisterComponent(PRInt32 when, nsIFile *aFileLocation) { return _to AutoRegisterComponent(when, aFileLocation); } \
  398.   NS_IMETHOD AutoUnregisterComponent(PRInt32 when, nsIFile *aFileLocation) { return _to AutoUnregisterComponent(when, aFileLocation); } \
  399.   NS_IMETHOD IsRegistered(const nsCID & aClass, PRBool *_retval) { return _to IsRegistered(aClass, _retval); } \
  400.   NS_IMETHOD EnumerateCLSIDs(nsIEnumerator **_retval) { return _to EnumerateCLSIDs(_retval); } \
  401.   NS_IMETHOD EnumerateContractIDs(nsIEnumerator **_retval) { return _to EnumerateContractIDs(_retval); } 
  402.  
  403. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  404. #define NS_FORWARD_SAFE_NSICOMPONENTMANAGEROBSOLETE(_to) \
  405.   NS_IMETHOD FindFactory(const nsCID & aClass, nsIFactory **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->FindFactory(aClass, _retval); } \
  406.   NS_IMETHOD GetClassObject(const nsCID & aClass, const nsIID & aIID, void * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetClassObject(aClass, aIID, _retval); } \
  407.   NS_IMETHOD_(nsresult) ContractIDToClassID(const char *aContractID, nsCID *aClass) { return !_to ? NS_ERROR_NULL_POINTER : _to->ContractIDToClassID(aContractID, aClass); } \
  408.   NS_IMETHOD CLSIDToContractID(const nsCID & aClass, char **aClassName, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CLSIDToContractID(aClass, aClassName, _retval); } \
  409.   NS_IMETHOD CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const nsIID & aIID, void * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateInstance(aClass, aDelegate, aIID, _retval); } \
  410.   NS_IMETHOD CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate, const nsIID & IID, void * *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->CreateInstanceByContractID(aContractID, aDelegate, IID, _retval); } \
  411.   NS_IMETHOD RegistryLocationForSpec(nsIFile *aSpec, char **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegistryLocationForSpec(aSpec, _retval); } \
  412.   NS_IMETHOD SpecForRegistryLocation(const char *aLocation, nsIFile **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->SpecForRegistryLocation(aLocation, _retval); } \
  413.   NS_IMETHOD RegisterFactory(const nsCID & aClass, const char *aClassName, const char *aContractID, nsIFactory *aFactory, PRBool aReplace) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterFactory(aClass, aClassName, aContractID, aFactory, aReplace); } \
  414.   NS_IMETHOD RegisterComponent(const nsCID & aClass, const char *aClassName, const char *aContractID, const char *aLocation, PRBool aReplace, PRBool aPersist) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterComponent(aClass, aClassName, aContractID, aLocation, aReplace, aPersist); } \
  415.   NS_IMETHOD RegisterComponentWithType(const nsCID & aClass, const char *aClassName, const char *aContractID, nsIFile *aSpec, const char *aLocation, PRBool aReplace, PRBool aPersist, const char *aType) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterComponentWithType(aClass, aClassName, aContractID, aSpec, aLocation, aReplace, aPersist, aType); } \
  416.   NS_IMETHOD RegisterComponentSpec(const nsCID & aClass, const char *aClassName, const char *aContractID, nsIFile *aLibrary, PRBool aReplace, PRBool aPersist) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterComponentSpec(aClass, aClassName, aContractID, aLibrary, aReplace, aPersist); } \
  417.   NS_IMETHOD RegisterComponentLib(const nsCID & aClass, const char *aClassName, const char *aContractID, const char *aDllName, PRBool aReplace, PRBool aPersist) { return !_to ? NS_ERROR_NULL_POINTER : _to->RegisterComponentLib(aClass, aClassName, aContractID, aDllName, aReplace, aPersist); } \
  418.   NS_IMETHOD UnregisterFactory(const nsCID & aClass, nsIFactory *aFactory) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterFactory(aClass, aFactory); } \
  419.   NS_IMETHOD UnregisterComponent(const nsCID & aClass, const char *aLocation) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterComponent(aClass, aLocation); } \
  420.   NS_IMETHOD UnregisterComponentSpec(const nsCID & aClass, nsIFile *aLibrarySpec) { return !_to ? NS_ERROR_NULL_POINTER : _to->UnregisterComponentSpec(aClass, aLibrarySpec); } \
  421.   NS_IMETHOD FreeLibraries(void) { return !_to ? NS_ERROR_NULL_POINTER : _to->FreeLibraries(); } \
  422.   NS_IMETHOD AutoRegister(PRInt32 when, nsIFile *directory) { return !_to ? NS_ERROR_NULL_POINTER : _to->AutoRegister(when, directory); } \
  423.   NS_IMETHOD AutoRegisterComponent(PRInt32 when, nsIFile *aFileLocation) { return !_to ? NS_ERROR_NULL_POINTER : _to->AutoRegisterComponent(when, aFileLocation); } \
  424.   NS_IMETHOD AutoUnregisterComponent(PRInt32 when, nsIFile *aFileLocation) { return !_to ? NS_ERROR_NULL_POINTER : _to->AutoUnregisterComponent(when, aFileLocation); } \
  425.   NS_IMETHOD IsRegistered(const nsCID & aClass, PRBool *_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->IsRegistered(aClass, _retval); } \
  426.   NS_IMETHOD EnumerateCLSIDs(nsIEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateCLSIDs(_retval); } \
  427.   NS_IMETHOD EnumerateContractIDs(nsIEnumerator **_retval) { return !_to ? NS_ERROR_NULL_POINTER : _to->EnumerateContractIDs(_retval); } 
  428.  
  429. #if 0
  430. /* Use the code below as a template for the implementation class for this interface. */
  431.  
  432. /* Header file */
  433. class nsComponentManagerObsolete : public nsIComponentManagerObsolete
  434. {
  435. public:
  436.   NS_DECL_ISUPPORTS
  437.   NS_DECL_NSICOMPONENTMANAGEROBSOLETE
  438.  
  439.   nsComponentManagerObsolete();
  440.  
  441. private:
  442.   ~nsComponentManagerObsolete();
  443.  
  444. protected:
  445.   /* additional members */
  446. };
  447.  
  448. /* Implementation file */
  449. NS_IMPL_ISUPPORTS1(nsComponentManagerObsolete, nsIComponentManagerObsolete)
  450.  
  451. nsComponentManagerObsolete::nsComponentManagerObsolete()
  452. {
  453.   /* member initializers and constructor code */
  454. }
  455.  
  456. nsComponentManagerObsolete::~nsComponentManagerObsolete()
  457. {
  458.   /* destructor code */
  459. }
  460.  
  461. /* nsIFactory findFactory (in nsCIDRef aClass); */
  462. NS_IMETHODIMP nsComponentManagerObsolete::FindFactory(const nsCID & aClass, nsIFactory **_retval)
  463. {
  464.     return NS_ERROR_NOT_IMPLEMENTED;
  465. }
  466.  
  467. /* [noscript] voidPtr getClassObject (in nsCIDRef aClass, in nsIIDRef aIID); */
  468. NS_IMETHODIMP nsComponentManagerObsolete::GetClassObject(const nsCID & aClass, const nsIID & aIID, void * *_retval)
  469. {
  470.     return NS_ERROR_NOT_IMPLEMENTED;
  471. }
  472.  
  473. /* [notxpcom] nsresult contractIDToClassID (in string aContractID, out nsCID aClass); */
  474. NS_IMETHODIMP_(nsresult) nsComponentManagerObsolete::ContractIDToClassID(const char *aContractID, nsCID *aClass)
  475. {
  476.     return NS_ERROR_NOT_IMPLEMENTED;
  477. }
  478.  
  479. /* string CLSIDToContractID (in nsCIDRef aClass, out string aClassName); */
  480. NS_IMETHODIMP nsComponentManagerObsolete::CLSIDToContractID(const nsCID & aClass, char **aClassName, char **_retval)
  481. {
  482.     return NS_ERROR_NOT_IMPLEMENTED;
  483. }
  484.  
  485. /* [noscript] voidPtr createInstance (in nsCIDRef aClass, in nsISupports aDelegate, in nsIIDRef aIID); */
  486. NS_IMETHODIMP nsComponentManagerObsolete::CreateInstance(const nsCID & aClass, nsISupports *aDelegate, const nsIID & aIID, void * *_retval)
  487. {
  488.     return NS_ERROR_NOT_IMPLEMENTED;
  489. }
  490.  
  491. /* [noscript] voidPtr createInstanceByContractID (in string aContractID, in nsISupports aDelegate, in nsIIDRef IID); */
  492. NS_IMETHODIMP nsComponentManagerObsolete::CreateInstanceByContractID(const char *aContractID, nsISupports *aDelegate, const nsIID & IID, void * *_retval)
  493. {
  494.     return NS_ERROR_NOT_IMPLEMENTED;
  495. }
  496.  
  497. /* string registryLocationForSpec (in nsIFile aSpec); */
  498. NS_IMETHODIMP nsComponentManagerObsolete::RegistryLocationForSpec(nsIFile *aSpec, char **_retval)
  499. {
  500.     return NS_ERROR_NOT_IMPLEMENTED;
  501. }
  502.  
  503. /* nsIFile specForRegistryLocation (in string aLocation); */
  504. NS_IMETHODIMP nsComponentManagerObsolete::SpecForRegistryLocation(const char *aLocation, nsIFile **_retval)
  505. {
  506.     return NS_ERROR_NOT_IMPLEMENTED;
  507. }
  508.  
  509. /* void registerFactory (in nsCIDRef aClass, in string aClassName, in string aContractID, in nsIFactory aFactory, in boolean aReplace); */
  510. NS_IMETHODIMP nsComponentManagerObsolete::RegisterFactory(const nsCID & aClass, const char *aClassName, const char *aContractID, nsIFactory *aFactory, PRBool aReplace)
  511. {
  512.     return NS_ERROR_NOT_IMPLEMENTED;
  513. }
  514.  
  515. /* void registerComponent (in nsCIDRef aClass, in string aClassName, in string aContractID, in string aLocation, in boolean aReplace, in boolean aPersist); */
  516. NS_IMETHODIMP nsComponentManagerObsolete::RegisterComponent(const nsCID & aClass, const char *aClassName, const char *aContractID, const char *aLocation, PRBool aReplace, PRBool aPersist)
  517. {
  518.     return NS_ERROR_NOT_IMPLEMENTED;
  519. }
  520.  
  521. /* void registerComponentWithType (in nsCIDRef aClass, in string aClassName, in string aContractID, in nsIFile aSpec, in string aLocation, in boolean aReplace, in boolean aPersist, in string aType); */
  522. NS_IMETHODIMP nsComponentManagerObsolete::RegisterComponentWithType(const nsCID & aClass, const char *aClassName, const char *aContractID, nsIFile *aSpec, const char *aLocation, PRBool aReplace, PRBool aPersist, const char *aType)
  523. {
  524.     return NS_ERROR_NOT_IMPLEMENTED;
  525. }
  526.  
  527. /* void registerComponentSpec (in nsCIDRef aClass, in string aClassName, in string aContractID, in nsIFile aLibrary, in boolean aReplace, in boolean aPersist); */
  528. NS_IMETHODIMP nsComponentManagerObsolete::RegisterComponentSpec(const nsCID & aClass, const char *aClassName, const char *aContractID, nsIFile *aLibrary, PRBool aReplace, PRBool aPersist)
  529. {
  530.     return NS_ERROR_NOT_IMPLEMENTED;
  531. }
  532.  
  533. /* void registerComponentLib (in nsCIDRef aClass, in string aClassName, in string aContractID, in string aDllName, in boolean aReplace, in boolean aPersist); */
  534. NS_IMETHODIMP nsComponentManagerObsolete::RegisterComponentLib(const nsCID & aClass, const char *aClassName, const char *aContractID, const char *aDllName, PRBool aReplace, PRBool aPersist)
  535. {
  536.     return NS_ERROR_NOT_IMPLEMENTED;
  537. }
  538.  
  539. /* void unregisterFactory (in nsCIDRef aClass, in nsIFactory aFactory); */
  540. NS_IMETHODIMP nsComponentManagerObsolete::UnregisterFactory(const nsCID & aClass, nsIFactory *aFactory)
  541. {
  542.     return NS_ERROR_NOT_IMPLEMENTED;
  543. }
  544.  
  545. /* void unregisterComponent (in nsCIDRef aClass, in string aLocation); */
  546. NS_IMETHODIMP nsComponentManagerObsolete::UnregisterComponent(const nsCID & aClass, const char *aLocation)
  547. {
  548.     return NS_ERROR_NOT_IMPLEMENTED;
  549. }
  550.  
  551. /* void unregisterComponentSpec (in nsCIDRef aClass, in nsIFile aLibrarySpec); */
  552. NS_IMETHODIMP nsComponentManagerObsolete::UnregisterComponentSpec(const nsCID & aClass, nsIFile *aLibrarySpec)
  553. {
  554.     return NS_ERROR_NOT_IMPLEMENTED;
  555. }
  556.  
  557. /* void freeLibraries (); */
  558. NS_IMETHODIMP nsComponentManagerObsolete::FreeLibraries()
  559. {
  560.     return NS_ERROR_NOT_IMPLEMENTED;
  561. }
  562.  
  563. /* void autoRegister (in long when, in nsIFile directory); */
  564. NS_IMETHODIMP nsComponentManagerObsolete::AutoRegister(PRInt32 when, nsIFile *directory)
  565. {
  566.     return NS_ERROR_NOT_IMPLEMENTED;
  567. }
  568.  
  569. /* void autoRegisterComponent (in long when, in nsIFile aFileLocation); */
  570. NS_IMETHODIMP nsComponentManagerObsolete::AutoRegisterComponent(PRInt32 when, nsIFile *aFileLocation)
  571. {
  572.     return NS_ERROR_NOT_IMPLEMENTED;
  573. }
  574.  
  575. /* void autoUnregisterComponent (in long when, in nsIFile aFileLocation); */
  576. NS_IMETHODIMP nsComponentManagerObsolete::AutoUnregisterComponent(PRInt32 when, nsIFile *aFileLocation)
  577. {
  578.     return NS_ERROR_NOT_IMPLEMENTED;
  579. }
  580.  
  581. /* boolean isRegistered (in nsCIDRef aClass); */
  582. NS_IMETHODIMP nsComponentManagerObsolete::IsRegistered(const nsCID & aClass, PRBool *_retval)
  583. {
  584.     return NS_ERROR_NOT_IMPLEMENTED;
  585. }
  586.  
  587. /* nsIEnumerator enumerateCLSIDs (); */
  588. NS_IMETHODIMP nsComponentManagerObsolete::EnumerateCLSIDs(nsIEnumerator **_retval)
  589. {
  590.     return NS_ERROR_NOT_IMPLEMENTED;
  591. }
  592.  
  593. /* nsIEnumerator enumerateContractIDs (); */
  594. NS_IMETHODIMP nsComponentManagerObsolete::EnumerateContractIDs(nsIEnumerator **_retval)
  595. {
  596.     return NS_ERROR_NOT_IMPLEMENTED;
  597. }
  598.  
  599. /* End of implementation class template. */
  600. #endif
  601.  
  602. /* include after the class def'n, because it needs to see it. */
  603. #include "nsComponentManagerUtils.h"
  604.  
  605. #endif /* __gen_nsIComponentManagerObsolete_h__ */
  606.